import request from '@/utils/request'

// 根据系统编码获取用户菜单
export function getAccountMenu() {
  return request({
    url: `/account/permission/getAccountMenu`,
    method: 'post'
  })
}

export function login(data) {
  return request({
    url: '/MemberUser.aspx?action=Login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request({
    url: '/vue-element-admin/user/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
